/**
 * Created by hxsd on 2016/7/21.
 */



$(function(){
   $(".b1").animate({
        left:"449px"
    },1000,function(){
        $(".b1").animate({
            width:"748px"
        },1000,function(){
            $(".b1 p").animate({
                opacity:"1",
                filter:"Alpha(opacity=100)"
            })
        })
    });
   $(window).scroll(function(){
   if($(window).scrollTop()>=200){
       $(".main_b .b2").animate({
           right:"449px"},1000)
       setTimeout($(".main_b .b2").animate({
           width:"748px"},1000,function(){
           $(".main_b .b2 p").animate({
               opacity:"1",
               filter:"Alpha(opacity=100)"
           },1000)}),1000);

   }
       if($(window).scrollTop()>=400){
           $(".main_b .b3").animate({
               left:"449px"},1000)
           setTimeout($(".main_b .b3").animate({
               width:"748px"},1000,function(){
               $(".main_b .b3 p").animate({
                   opacity:"1",
                   filter:"Alpha(opacity=100)"
               },1000)}),1000);
       }
       if($(window).scrollTop()>=600){
           $(".main_b .b4").animate({
               right:"449px"},1000)
           setTimeout($(".main_b .b4").animate({
               width:"748px"},1000,function(){
               $(".main_b .b4 p").animate({
                   opacity:"1",
                   filter:"Alpha(opacity=100)"
               },1000)}),1000);
       }
       if($(window).scrollTop()>800){
           $(".main_b .b5").animate({
               left:"449px"},1000)
           setTimeout($(".main_b .b5").animate({
               width:"748px"},1000,function(){
               $(".main_b .b5 p").animate({
                   opacity:"1",
                   filter:"Alpha(opacity=100)"
               },1000)}),1000);
       }
   })
})